package pers.supeijin.devtools.converter.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtils {
	/**
	 *  替换所有的
	 * @param str
	 * @param oldStr
	 * @param newStr
	 * @return
	 */
	public static String replaceAll(String str,String oldStr,String newStr){
		Pattern pattern = Pattern.compile(oldStr);
		Matcher matcher = pattern.matcher(str);
		return matcher.replaceAll(newStr);
	}
	public static boolean isEmpty(String str){
		if(str==null || str.trim().length()<1){
			return true;
		}
		return false;
	}
}
